#include<iostream>
using namespace std;
class Complex
{
	public:
		double real;
		double imag;
	Complex(double r = 0.0,double i = 0.0):real(r),imag(i){}
	Complex operator-(const & c);
	friend Complex operator+(const Complex & a,const Complex & b)
	{
		return Complex(a.real+b.real,a.imag+b.imag);
	}
	void display();
	
};
Complex operator-( const Complex &a, const Complex &b)
{
	return Complex(a.real-b.real,a.imag-b.imag);	
}
void Complex::display()
{
	cout<<"("<<real<<","<<imag<<")"<<endl;
}
int main()
{
	Complex a(7.7,8.8),b(2.2,5.5),c,d;
	c=a+b;
	c.display();
	d=a-b;
	d.display();
	return 0;
	}